import { createApp } from 'vue'
import './style.css'
// import './styles/root.scss'
import App from './App.vue'
import router from './router/index'

/**  引入组件   **/
import elementUi from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import {createPinia} from 'pinia'

const pinia = createPinia()

/**  挂载全局事件总线   **/
import mitt from 'mitt';
window.$eventBus = mitt();

const app = createApp(App);
app.use(router)
app.use(elementUi)
app.use(pinia)
// 挂载在 let { proxy } = getCurrentInstance();  proxy组件实例上
// app.config.globalProperties.$eventBus = mitt()

app.mount('#app')


